<div class="slider-wrapper">
	<div id="slider" class="nivoSlider">
		<?php
		
		foreach ($slider->children() as $value)
		{
			echo "<a title='trang diem, makeup' href='$value->link'><img  alt='trang diem, makeup' width='668px' height='450px' src='$value->image'/></a>";
		}
		
		?>
	</div>
</div>

<script type="text/javascript">
	$(window).load(function() {
		$('#slider').nivoSlider(
		{
			randomStart: true,
			animSpeed: 1000,
			effect: 'fade',
			pauseTime: 2900,
			controlNav: false,
			prevText: '', 
			nextText: '' 
		});
	});
</script>